package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.bean.Orders;
import com.itheima.bean.PageParams;
import com.itheima.bean.User;
import com.itheima.dto.OrdersDto;

/**
 * @author hebing
 * @version 1.0
 */
public interface OrderService {

    /**
     * 分页查询
     * @param params
     * @return
     */
    IPage<Orders> findPage(PageParams params);

    /**
     * 修改订单状态
     * @param orders
     * @return
     */
    int updateStatus(Orders orders);

    /**
     * 提交订单
     * @param orders
     * @return
     */
    Orders submit(Orders orders, User user);

    /**
     * 根据提供的信息进行分页查询用户表
     * @param params
     * @return
     */
    IPage<OrdersDto> findUserPage(PageParams params);
}
